package com.huitu.whht.base.core.api.wr.mp.entities;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;


import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.huitu.whht.api.core.common.base.MyLocalDateTimeDeserializer;
import com.huitu.whht.api.core.common.base.MyLocalDateTimeSerializer;
import java.time.LocalDateTime;

/**
 * 说明: 实体类,表名称: T_WHHT_WR_MP_HOURW_LATEST <br/>
 * 日期: 2019-04-15
 * @author LiuCW
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class WrMpHourwLatest extends WrMpHourwLatestKey {

private static final long serialVersionUID = 4L;
    public WrMpHourwLatest(){

    }

    /**
      * 监测点代码
      */
    public String mpCd;
    /**
      * 日期
      */
    @JsonDeserialize(using = MyLocalDateTimeDeserializer.class)
    @JsonSerialize(using = MyLocalDateTimeSerializer.class)
    public LocalDateTime dt;
    /**
      * 小时水量
      */
    public Double hourW;
    /**
      * 特殊区域
      */
    public String speRegData;
    /**
      * 小时水量表时间戳
      */
    @JsonDeserialize(using = MyLocalDateTimeDeserializer.class)
    @JsonSerialize(using = MyLocalDateTimeSerializer.class)
    public LocalDateTime ts;
    /**
      * '1'为历史数据，'0'为系统当前时间站点最新数据
      */
    public String isHistory;
    /**
      * 任务执行时间
      */
    @JsonDeserialize(using = MyLocalDateTimeDeserializer.class)
    @JsonSerialize(using = MyLocalDateTimeSerializer.class)
    public LocalDateTime tm;
}